<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
		*{
			margin: 0;
			padding: 0;
		}
			.one{
				width: 100px;
				height: 100px;
				background: red;
				margin-bottom: 20px;
			}
			
			.two{
				width: 100px;
				height: 100px;
				background: blue;
				margin-bottom: 10px;
			}
			
			.three{
				width: 100px;
				height: 100px;
				background: orange;
				margin: 0 10px;
				display: inline-block;
			}
			
			.four{
				width: 100px;
				height: 100px;
				background: pink;
				margin: 0 10px;
				display: inline-block;
			}
		</style>
	</head>
	<body>
		<div class="one">我向下加了20的margin</div>
		<div class="two">我向上加了10的margin</div>
		
		<div class="three">我左右都加了10的margin</div>
		<div class="four">我左右都加了10的margin</div>
	</body>
</html>
